¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
Помогите с задачами
0 Votos
1 Respuesta
what have i to do, if i want that the program always writes for example :
0+1
1+2
3+3
6+4
10+5
15+6
...
because now it just writes
1
3
6
10
15
...
and maybe if it works, can i make then
0+1=1
1+2=3
3+3=6
6+4=10
#include <iostream>
using namespace std;
int main(){
int i;
int sum = 0;
for (i = 1; i <= 100; i++){
sum = sum+i;
cout<<sum<<endl;
}
cout<<sum;
return 0;
}
1 Voto
5 RespuestasWher is mistake?
0 Votos
5 RespuestasEn tendencia hoy
Is the AI course worth the $49?
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Comparing code coach solutions
1 Votes
How to win bits
1 Votes